package com.example.manager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ranks
 */
@TableName(value ="ranks")
@Data
public class Ranks implements Serializable {
    /**
     * 职级编码
     */
    @TableId
    private String rankNo;

    /**
     * 职级层次
     */
    private String rankArrangement;

    /**
     * 职级层次名称
     */
    private String rankArrangementName;

    /**
     * 薪资范围上限
     */
    private String salaryCap;

    /**
     * 薪资范围下限
     */
    private String salaryMinimum;

    /**
     * 备注
     */
    private String remark;

    /**
     * 备用列1
     */
    private String columnOne;

    /**
     * 备用列2
     */
    private String columeTwo;

    /**
     * 备用列3
     */
    private String columeThree;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ranks other = (Ranks) that;
        return (this.getRankNo() == null ? other.getRankNo() == null : this.getRankNo().equals(other.getRankNo()))
            && (this.getRankArrangement() == null ? other.getRankArrangement() == null : this.getRankArrangement().equals(other.getRankArrangement()))
            && (this.getRankArrangementName() == null ? other.getRankArrangementName() == null : this.getRankArrangementName().equals(other.getRankArrangementName()))
            && (this.getSalaryCap() == null ? other.getSalaryCap() == null : this.getSalaryCap().equals(other.getSalaryCap()))
            && (this.getSalaryMinimum() == null ? other.getSalaryMinimum() == null : this.getSalaryMinimum().equals(other.getSalaryMinimum()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getColumnOne() == null ? other.getColumnOne() == null : this.getColumnOne().equals(other.getColumnOne()))
            && (this.getColumeTwo() == null ? other.getColumeTwo() == null : this.getColumeTwo().equals(other.getColumeTwo()))
            && (this.getColumeThree() == null ? other.getColumeThree() == null : this.getColumeThree().equals(other.getColumeThree()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRankNo() == null) ? 0 : getRankNo().hashCode());
        result = prime * result + ((getRankArrangement() == null) ? 0 : getRankArrangement().hashCode());
        result = prime * result + ((getRankArrangementName() == null) ? 0 : getRankArrangementName().hashCode());
        result = prime * result + ((getSalaryCap() == null) ? 0 : getSalaryCap().hashCode());
        result = prime * result + ((getSalaryMinimum() == null) ? 0 : getSalaryMinimum().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getColumnOne() == null) ? 0 : getColumnOne().hashCode());
        result = prime * result + ((getColumeTwo() == null) ? 0 : getColumeTwo().hashCode());
        result = prime * result + ((getColumeThree() == null) ? 0 : getColumeThree().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rankNo=").append(rankNo);
        sb.append(", rankArrangement=").append(rankArrangement);
        sb.append(", rankArrangementName=").append(rankArrangementName);
        sb.append(", salaryCap=").append(salaryCap);
        sb.append(", salaryMinimum=").append(salaryMinimum);
        sb.append(", remark=").append(remark);
        sb.append(", columnOne=").append(columnOne);
        sb.append(", columeTwo=").append(columeTwo);
        sb.append(", columeThree=").append(columeThree);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}